package com.ybliang.plat.common.rpc.registry.consul;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * consul注册信息
 * @author liangyb1
 */
@ConfigurationProperties(prefix= ConsulConfigProperties.PRIFIX)
public class ConsulConfigProperties {

    public static final String PRIFIX = "plat.rpc.consul";

    private String instanceId;
    private String name;
    private String host;
    private Integer port;
    private String version;
    private Integer interval;
    private String nodeUrl;

    public String getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Integer getInterval() {
        return interval;
    }

    public void setInterval(Integer interval) {
        this.interval = interval;
    }

    public String getNodeUrl() {
        return nodeUrl;
    }

    public void setNodeUrl(String nodeUrl) {
        this.nodeUrl = nodeUrl;
    }

}
